home *** CD-ROM | disk | FTP | other *** search
/ MacHack 1997 / MacHack 1997.toast / Hacks / Hacks ’97 / Warrior’s Progress / source code / Source / Libraries / Fonts / ScriptID.h < prev   
Encoding:
Text File  |  1997-06-28  |  552 b   |  33 lines  |  [TEXT/CWIE]

  1. // ScriptID.h
  2.  
  3. #ifndef ScriptID_h
  4. #define ScriptID_h
  5.  
  6. #ifndef Integers_h
  7. #include "Integers.h"
  8. #endif
  9.  
  10. class ScriptID
  11.   {
  12.     private:
  13.         ScriptCode id;
  14.     
  15.         ScriptID( ScriptCode value )
  16.           : id( value )
  17.           {}
  18.         
  19.     public:
  20.         static ScriptID Make( ScriptCode value )        { return value; }
  21.     
  22.         static ScriptID System();
  23.         
  24.         static ScriptID Roman()                        { return smRoman; }
  25.         
  26.         ScriptCode ID() const                        { return id; }
  27.         
  28.         bool operator==( ScriptID s ) const        { return id == s.id; }
  29.         bool operator!=( ScriptID s ) const        { return id != s.id; }
  30.   };
  31.  
  32. #endif
  33.